package com.lancoo.edu.platform.operation.commons.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author zhang.ws
 * @date 2024/2/19 17:24
 * @description DatabaseConfig
 */
@Data
@Component
public class DatabaseConfig {

    /**
     * 用户名
     */
    @Value("${spring.datasource.username}")
    private String userName;

    /**
     * 密码
     */
    @Value("${spring.datasource.password}")
    private String password;

    /**
     * 端口
     */
    @Value("${datasource.port}")
    private String port;

    /**
     * IP
     */
    @Value("${datasource.host}")
    private String host;

}
